package com.luckcoder.relax.games.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.luckcoder.relax.games.domain.RelaxUserAchievement;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户游戏成就视图对象 relax_user_achievement
 *
 * @author zhanghao
 * @date 2025-09-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = RelaxUserAchievement.class)
public class RelaxUserAchievementVo implements Serializable {
    
    @Serial
    private static final long serialVersionUID = 1L;
    
    /**
     * 成就ID
     */
    @ExcelProperty(value = "成就ID")
    private Long achievementId;
    
    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;
    
    /**
     * 游戏ID
     */
    @ExcelProperty(value = "游戏ID")
    private Long gameId;
    
    /**
     * 游戏编码
     */
    @ExcelProperty(value = "游戏编码")
    private String gameCode;
    
    /**
     * 成就类型（score_milestone分数里程碑、play_count游戏次数、consecutive_wins连胜）
     */
    @ExcelProperty(value = "成就类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "s=core_milestone分数里程碑、play_count游戏次数、consecutive_wins连胜")
    private String achievementType;
    
    /**
     * 成就名称
     */
    @ExcelProperty(value = "成就名称")
    private String achievementName;
    
    /**
     * 成就描述
     */
    @ExcelProperty(value = "成就描述")
    private String achievementDesc;
    
    /**
     * 成就数值
     */
    @ExcelProperty(value = "成就数值")
    private Long achievementValue;
    
    /**
     * 解锁时间
     */
    @ExcelProperty(value = "解锁时间")
    private Date unlockTime;
    
    /**
     * 是否已解锁（0未解锁 1已解锁）
     */
    @ExcelProperty(value = "是否已解锁", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未解锁,1=已解锁")
    private String isUnlocked;
    
    
}
